package com.global.gbinventory.barang.model;

public class Merek {
	
	private int id;
	private String nama;
	
	public Merek(int id, String nama){
		this.id = id;
		this.nama = nama;
	}
	
	public int getId(){
		return this.id;
	}
	
	public void setId(int id){
		this.id = id;
	}
	
	public String getNama(){
		return this.nama;
	}
	
	public void setNama(String nama){
		this.nama = nama;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof Merek){
			return ((Merek) obj).getNama().equals(this.nama);
		}
		return false;
	}

}
